package chapter3;
import java.util.Scanner;
public class judge {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入第一个数");
        double a = input.nextDouble();
        System.out.println("请输入第二个数");
        double b = input.nextDouble();
        System.out.println("请输入第三个数");
        double c = input.nextDouble();
        double min, max;
        max = a;
        min = b;

        if (b > max) {
            max = b;
        }
        if (b < max) {
            min = b;
        }
        if (c > max) {
            max = c;
        }
        if (c < max) {
            max = c;
            System.out.println(min);
            System.out.println(a + b + c - min - max);
            System.out.println(max);
        }
    }
}

